<template>
  <div>
    <nav-bar class="addressBook">
      <div slot="left">通讯录</div>
      <div slot="right-1" class="add"> <img src="../../assets/img/winxin/add.png" alt=""></div>
      <div slot="right" class="search"> <img src="../../assets/img/winxin/search.png" alt=""></div>
    </nav-bar>
    <div class="chat" @click="handleClick">
      <img src="../../assets/img/winxin/5.jpg" alt="">
      <div class="chat-title-1">
        <div class="chat-title-1-1">丝路视觉数字营销</div>
      </div>
    </div>
    <div class="chat-2">
      <img src="../../assets/img/winxin/1.jpg" alt="" >
      <div class="chat-title-2">
        <div class="chat-title-2-1">张三</div>
      </div>
    </div>
  </div>
</template>

<script>
  import NavBar from "../../components/common/navbar/NavBar";

  export default {
    name: "addressBook",
    components: {
      NavBar
    },
    methods: {
      handleClick() {
        this.$router.push({path: "helloWorld"})
      }
    }
  }
</script>

<style scoped>
  .addressBook {
    height: 45px;
    background-color: #F7F7F7;
  }
  .add img {
    width: 24px;
    height: 24px;
    margin-top: 10px
  }
  .search img {
    width: 24px;
    height: 24px;
    margin-top: 10px;
    margin-right: -51px;
  }
  .chat {
    display: flex;
    height: 63px;
    border-bottom: 1px solid #dbdbdb;
    border-top:0;
    border-left:0;
    border-right:0;
    background-color: #FFFFFF;

  }
  .chat img {
    width: 60px;
    height: 60px;
    margin-top: 2px;
    margin-left: 2px;
  }
  .chat-title-1 {
    flex: 1;
    margin-top: 6px;
    margin-left: 6px;
  }
  .chat-2 {
    display: flex;
    height: 63px;
    border-bottom: 1px solid #dbdbdb;
    background-color: #FFFFFF;

  }
  .chat-2 img {
    width: 50px;
    height: 50px;
    margin-left: 7px;
    margin-top: 7px;
  }
  .chat-title-2 {
    flex: 1;
    margin-top: 6px;
    margin-left: 8px;
  }
  .chat-title-2-1 {
    margin-top: 8px;
  }

</style>
